package cn.cdl.report.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.cdl.report.entity.ChinaBankWuxiXinqu;
import cn.cdl.report.service.ChinaBankWuxiXinquService;

@Controller
@RequestMapping("chinaBankWuxiXinqu")
public class ChinaBankWuxiXinquController {

	@Autowired
	ChinaBankWuxiXinquService chinaBankWuxiXinquServiceImpl;
	
	@RequestMapping("/toList")
	public String toChinaBankWuxiXinqu(ChinaBankWuxiXinqu c,Model model){
		List<ChinaBankWuxiXinqu> list = chinaBankWuxiXinquServiceImpl.getList(c);
		model.addAttribute("list", list);
		return "bank/chinaBankWuxiXinqu";
	}
	
	
	@RequestMapping("/list")
	@ResponseBody
	public List<ChinaBankWuxiXinqu> getList(ChinaBankWuxiXinqu c){
		List<ChinaBankWuxiXinqu> list = chinaBankWuxiXinquServiceImpl.getList(c);
		return list;
	}
	
	
}
